package com.jeasonzhao.report.vml.base;

//外部矩形为整个圆形的矩形，角度为度数0~360。
//角度方向，垂直上为0，水平右边为90，顺时针旋转,
//封闭曲线为开始点，圆弧和结束点组成的封闭区间
public class Arc extends Rect
{
    private int m_attr_StartAngle = -1;
    private int m_attr_EndAngle = -1;
    public Arc()
    {
        super();
    }

    public Arc(Vector2D topleft,Vector2D size)
    {
        setTopLeft(topleft);
        setSize(size);
    }

    public Arc(int top,int left,int width,int height)
    {
        setTopLeft(top,left);
        setSize(width,height);
    }

    public void setByRidus(Vector2D pt,int nR)
    {
        this.setByCenter(pt,nR * 2,nR * 2);
    }

    public int getEndAngle()
    {
        return m_attr_EndAngle;
    }

    public int getStartAngle()
    {
        return m_attr_StartAngle;
    }

    public void setEndAngle(int endAngle)
    {
        this.m_attr_EndAngle = endAngle; //% 360;
    }

    public void setStartAngle(int startAngle)
    {
        this.m_attr_StartAngle = startAngle; // % 360;
    }
}
